import random
filename="neighbors.dat"
nbor_list=[]
FILE = open(filename,"w")
for y in range(1,1001):
	for x in range(1,4):
		nbor_nodeID = random.randint(1,1000)		#generate a random neighbor
		nbor_list.append(str(nbor_nodeID))
		FILE.write("%s\t" % str(nbor_nodeID))
	FILE.write("\n")
FILE.close()
		
	

